package com.TeaManage.bean;

import java.util.Date;

public class Order {
    private Integer order_id;
    private Integer customer_id;
    private String order_no;
    private Double total_amount;
    private Integer status=0;
    private Date payment_time;
    private String customer_name; // 用于显示，不存储在数据库中

    public Order() {
    }

    public Order(Integer order_id, Integer customer_id, String order_no, Double total_amount, Integer status) {
        this.order_id = order_id;
        this.customer_id = customer_id;
        this.order_no = order_no;
        this.total_amount = total_amount;
        this.status = status;
    }

    /**
     * 获取
     * @return order_id
     */
    public Integer getOrder_id() {
        return order_id;
    }

    /**
     * 设置
     * @param order_id
     */
    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    /**
     * 获取
     * @return customer_id
     */
    public Integer getCustomer_id() {
        return customer_id;
    }

    /**
     * 设置
     * @param customer_id
     */
    public void setCustomer_id(Integer customer_id) {
        this.customer_id = customer_id;
    }

    /**
     * 获取
     * @return order_no
     */
    public String getOrder_no() {
        return order_no;
    }

    /**
     * 设置
     * @param order_no
     */
    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }

    /**
     * 获取
     * @return total_amount
     */
    public Double getTotal_amount() {
        return total_amount;
    }

    /**
     * 设置
     * @param total_amount
     */
    public void setTotal_amount(Double total_amount) {
        this.total_amount = total_amount;
    }

    /**
     * 获取
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }



    /**
     * 获取
     * @return payment_time
     */
    public Date getPayment_time() {
        return payment_time;
    }

    /**
     * 设置
     * @param payment_time
     */
    public void setPayment_time(Date payment_time) {
        this.payment_time = payment_time;
    }

    /**
     * 获取
     * @return customer_name
     */
    public String getCustomer_name() {
        return customer_name;
    }

    /**
     * 设置
     * @param customer_name
     */
    public void setCustomer_name(String customer_name) {
        this.customer_name = customer_name;
    }

    public String toString() {
        return "Order{order_id = " + order_id + ", customer_id = " + customer_id + ", order_no = " + order_no + ", total_amount = " + total_amount + ", status = " + status + ", payment_time = " + payment_time + ", customer_name = " + customer_name + "}";
    }
}
